<script setup>

const detailInfo = inject('detailInfo')

const list = computed(()=> {
  if (!detailInfo || !detailInfo.value || !detailInfo.value.formData) {
    return []
  }
  const formData = detailInfo.value.formData;

  const items = formData.items;
  return items;
});


</script>

<template>
  <vxe-table :data="list">
    <vxe-column title="名称" field="name"></vxe-column>
    <vxe-column title="类别" field="categoryName"></vxe-column>
    <vxe-column title="品牌" field="brand"></vxe-column>
    <vxe-column title="型号" field="model"></vxe-column>
  </vxe-table>
</template>

<style scoped lang="scss">

</style>